home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / tasksel / tests / laptop < prev    next >
Text File  |  2008-10-10  |  265b  |  14 lines

  1. #!/bin/sh
  2. # Causes a task to be selected if the machine appears to be a laptop.
  3.  
  4. if [ "$NEW_INSTALL" ]; then
  5.     if which laptop-detect >/dev/null 2>&1 && \
  6.         laptop-detect; then
  7.         exit 2 # mark for install
  8.     else
  9.         exit 3 # do not mark for install
  10.     fi
  11. else
  12.     exit 3
  13. fi
  14.